import { request } from '@/framework/utils/request-jdz';

export const iceboxConfig = (params) => {
  return request(
    {
      url: '/common/cfg/no-paging',
      method: 'get',
      params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};

export const approvalConfig = (params) => {
  return request(
    {
      url: '/common/cfg/no-paging',
      method: 'get',
      params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};

export const saveCommonCfg = (params, id) => {
  return request(
    {
      url: `/common/cfg/${id}`,
      method: 'put',
      data: params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
